The WFIRST effort at STScI has produced software tools for use by the scientific community. This repository contains example code and instructions for WebbPSF, the PSF simulator for JWST and WFIRST, as well as Pandeia, the exposure time and signal-to-noise calculator for both missions.
If the following cell executes without errors, you're good to go! (Give it a few seconds.)
In [ ]:
import warnings
warnings.filterwarnings('ignore', message='No .+ tables found')
import pysynphot
import webbpsf.wfirst
wfi = webbpsf.wfirst.WFI()
from pandeia.engine.wfirst import WFIRSTImager
_ = WFIRSTImager(mode="imaging")
print("Looks like everything installed correctly!")
The WFIRST functionality in WebbPSF is summarized on the STScI WFIRST software page and in the WebbPSF documentation.